/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.taobao.ibatiside.model.mapperv3.provider;

import java.util.ArrayList;
import java.util.Collection;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.edit.provider.ChangeNotifier;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
import org.eclipse.emf.edit.provider.IChangeNotifier;
import org.eclipse.emf.edit.provider.IDisposable;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.INotifyChangedListener;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;

import org.taobao.ibatiside.model.mapperv3.util.Mapperv3AdapterFactory;

/**
 * This is the factory that is used to provide the interfaces needed to support Viewers.
 * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
 * The adapters also support Eclipse property sheets.
 * Note that most of the adapters are shared among multiple instances.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public class Mapperv3ItemProviderAdapterFactory extends Mapperv3AdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
	/**
	 * This keeps track of the root adapter factory that delegates to this adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ComposedAdapterFactory parentAdapterFactory;

	/**
	 * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IChangeNotifier changeNotifier = new ChangeNotifier();

	/**
	 * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected Collection<Object> supportedTypes = new ArrayList<Object>();

	/**
	 * This constructs an instance.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Mapperv3ItemProviderAdapterFactory() {
		supportedTypes.add(IEditingDomainItemProvider.class);
		supportedTypes.add(IStructuredItemContentProvider.class);
		supportedTypes.add(ITreeItemContentProvider.class);
		supportedTypes.add(IItemLabelProvider.class);
		supportedTypes.add(IItemPropertySource.class);
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.AbstractArg} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected AbstractArgItemProvider abstractArgItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.AbstractArg}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createAbstractArgAdapter() {
		if (abstractArgItemProvider == null) {
			abstractArgItemProvider = new AbstractArgItemProvider(this);
		}

		return abstractArgItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.AbstractIdOrResult} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected AbstractIdOrResultItemProvider abstractIdOrResultItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.AbstractIdOrResult}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createAbstractIdOrResultAdapter() {
		if (abstractIdOrResultItemProvider == null) {
			abstractIdOrResultItemProvider = new AbstractIdOrResultItemProvider(this);
		}

		return abstractIdOrResultItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Arg} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ArgItemProvider argItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Arg}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createArgAdapter() {
		if (argItemProvider == null) {
			argItemProvider = new ArgItemProvider(this);
		}

		return argItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Association} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected AssociationItemProvider associationItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Association}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createAssociationAdapter() {
		if (associationItemProvider == null) {
			associationItemProvider = new AssociationItemProvider(this);
		}

		return associationItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Cache} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected CacheItemProvider cacheItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Cache}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createCacheAdapter() {
		if (cacheItemProvider == null) {
			cacheItemProvider = new CacheItemProvider(this);
		}

		return cacheItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.CacheRef} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected CacheRefItemProvider cacheRefItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.CacheRef}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createCacheRefAdapter() {
		if (cacheRefItemProvider == null) {
			cacheRefItemProvider = new CacheRefItemProvider(this);
		}

		return cacheRefItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Case} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected CaseItemProvider caseItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Case}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createCaseAdapter() {
		if (caseItemProvider == null) {
			caseItemProvider = new CaseItemProvider(this);
		}

		return caseItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Choose} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ChooseItemProvider chooseItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Choose}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createChooseAdapter() {
		if (chooseItemProvider == null) {
			chooseItemProvider = new ChooseItemProvider(this);
		}

		return chooseItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Collection} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected CollectionItemProvider collectionItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Collection}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createCollectionAdapter() {
		if (collectionItemProvider == null) {
			collectionItemProvider = new CollectionItemProvider(this);
		}

		return collectionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Constructor} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ConstructorItemProvider constructorItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Constructor}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createConstructorAdapter() {
		if (constructorItemProvider == null) {
			constructorItemProvider = new ConstructorItemProvider(this);
		}

		return constructorItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Delete} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DeleteItemProvider deleteItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Delete}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDeleteAdapter() {
		if (deleteItemProvider == null) {
			deleteItemProvider = new DeleteItemProvider(this);
		}

		return deleteItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Discriminator} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DiscriminatorItemProvider discriminatorItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Discriminator}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDiscriminatorAdapter() {
		if (discriminatorItemProvider == null) {
			discriminatorItemProvider = new DiscriminatorItemProvider(this);
		}

		return discriminatorItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.DocumentRoot} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DocumentRootItemProvider documentRootItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.DocumentRoot}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDocumentRootAdapter() {
		if (documentRootItemProvider == null) {
			documentRootItemProvider = new DocumentRootItemProvider(this);
		}

		return documentRootItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Foreach} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ForeachItemProvider foreachItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Foreach}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createForeachAdapter() {
		if (foreachItemProvider == null) {
			foreachItemProvider = new ForeachItemProvider(this);
		}

		return foreachItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Id} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IdItemProvider idItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Id}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIdAdapter() {
		if (idItemProvider == null) {
			idItemProvider = new IdItemProvider(this);
		}

		return idItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.IdArg} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IdArgItemProvider idArgItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.IdArg}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIdArgAdapter() {
		if (idArgItemProvider == null) {
			idArgItemProvider = new IdArgItemProvider(this);
		}

		return idArgItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.If} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IfItemProvider ifItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.If}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIfAdapter() {
		if (ifItemProvider == null) {
			ifItemProvider = new IfItemProvider(this);
		}

		return ifItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Include} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IncludeItemProvider includeItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Include}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIncludeAdapter() {
		if (includeItemProvider == null) {
			includeItemProvider = new IncludeItemProvider(this);
		}

		return includeItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Insert} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected InsertItemProvider insertItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Insert}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createInsertAdapter() {
		if (insertItemProvider == null) {
			insertItemProvider = new InsertItemProvider(this);
		}

		return insertItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Mapper} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected MapperItemProvider mapperItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Mapper}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createMapperAdapter() {
		if (mapperItemProvider == null) {
			mapperItemProvider = new MapperItemProvider(this);
		}

		return mapperItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Otherwise} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected OtherwiseItemProvider otherwiseItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Otherwise}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createOtherwiseAdapter() {
		if (otherwiseItemProvider == null) {
			otherwiseItemProvider = new OtherwiseItemProvider(this);
		}

		return otherwiseItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Parameter} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ParameterItemProvider parameterItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Parameter}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createParameterAdapter() {
		if (parameterItemProvider == null) {
			parameterItemProvider = new ParameterItemProvider(this);
		}

		return parameterItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.ParameterMap} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ParameterMapItemProvider parameterMapItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.ParameterMap}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createParameterMapAdapter() {
		if (parameterMapItemProvider == null) {
			parameterMapItemProvider = new ParameterMapItemProvider(this);
		}

		return parameterMapItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Property} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected PropertyItemProvider propertyItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Property}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createPropertyAdapter() {
		if (propertyItemProvider == null) {
			propertyItemProvider = new PropertyItemProvider(this);
		}

		return propertyItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Result} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ResultItemProvider resultItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Result}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createResultAdapter() {
		if (resultItemProvider == null) {
			resultItemProvider = new ResultItemProvider(this);
		}

		return resultItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.ResultMap} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ResultMapItemProvider resultMapItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.ResultMap}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createResultMapAdapter() {
		if (resultMapItemProvider == null) {
			resultMapItemProvider = new ResultMapItemProvider(this);
		}

		return resultMapItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Select} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SelectItemProvider selectItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Select}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSelectAdapter() {
		if (selectItemProvider == null) {
			selectItemProvider = new SelectItemProvider(this);
		}

		return selectItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.SelectKey} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SelectKeyItemProvider selectKeyItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.SelectKey}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSelectKeyAdapter() {
		if (selectKeyItemProvider == null) {
			selectKeyItemProvider = new SelectKeyItemProvider(this);
		}

		return selectKeyItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Set} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SetItemProvider setItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Set}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSetAdapter() {
		if (setItemProvider == null) {
			setItemProvider = new SetItemProvider(this);
		}

		return setItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Sql} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SqlItemProvider sqlItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Sql}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSqlAdapter() {
		if (sqlItemProvider == null) {
			sqlItemProvider = new SqlItemProvider(this);
		}

		return sqlItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Trim} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected TrimItemProvider trimItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Trim}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createTrimAdapter() {
		if (trimItemProvider == null) {
			trimItemProvider = new TrimItemProvider(this);
		}

		return trimItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.TypeAlias} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected TypeAliasItemProvider typeAliasItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.TypeAlias}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createTypeAliasAdapter() {
		if (typeAliasItemProvider == null) {
			typeAliasItemProvider = new TypeAliasItemProvider(this);
		}

		return typeAliasItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Update} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected UpdateItemProvider updateItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Update}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createUpdateAdapter() {
		if (updateItemProvider == null) {
			updateItemProvider = new UpdateItemProvider(this);
		}

		return updateItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.When} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected WhenItemProvider whenItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.When}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createWhenAdapter() {
		if (whenItemProvider == null) {
			whenItemProvider = new WhenItemProvider(this);
		}

		return whenItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv3.Where} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected WhereItemProvider whereItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv3.Where}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createWhereAdapter() {
		if (whereItemProvider == null) {
			whereItemProvider = new WhereItemProvider(this);
		}

		return whereItemProvider;
	}

	/**
	 * This returns the root adapter factory that contains this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ComposeableAdapterFactory getRootAdapterFactory() {
		return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
	}

	/**
	 * This sets the composed adapter factory that contains this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
		this.parentAdapterFactory = parentAdapterFactory;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object type) {
		return supportedTypes.contains(type) || super.isFactoryForType(type);
	}

	/**
	 * This implementation substitutes the factory itself as the key for the adapter.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter adapt(Notifier notifier, Object type) {
		return super.adapt(notifier, this);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object adapt(Object object, Object type) {
		if (isFactoryForType(type)) {
			Object adapter = super.adapt(object, type);
			if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
				return adapter;
			}
		}

		return null;
	}

	/**
	 * This adds a listener.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void addListener(INotifyChangedListener notifyChangedListener) {
		changeNotifier.addListener(notifyChangedListener);
	}

	/**
	 * This removes a listener.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void removeListener(INotifyChangedListener notifyChangedListener) {
		changeNotifier.removeListener(notifyChangedListener);
	}

	/**
	 * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void fireNotifyChanged(Notification notification) {
		changeNotifier.fireNotifyChanged(notification);

		if (parentAdapterFactory != null) {
			parentAdapterFactory.fireNotifyChanged(notification);
		}
	}

	/**
	 * This disposes all of the item providers created by this factory. 
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void dispose() {
		if (abstractArgItemProvider != null) abstractArgItemProvider.dispose();
		if (abstractIdOrResultItemProvider != null) abstractIdOrResultItemProvider.dispose();
		if (argItemProvider != null) argItemProvider.dispose();
		if (associationItemProvider != null) associationItemProvider.dispose();
		if (cacheItemProvider != null) cacheItemProvider.dispose();
		if (cacheRefItemProvider != null) cacheRefItemProvider.dispose();
		if (caseItemProvider != null) caseItemProvider.dispose();
		if (chooseItemProvider != null) chooseItemProvider.dispose();
		if (collectionItemProvider != null) collectionItemProvider.dispose();
		if (constructorItemProvider != null) constructorItemProvider.dispose();
		if (deleteItemProvider != null) deleteItemProvider.dispose();
		if (discriminatorItemProvider != null) discriminatorItemProvider.dispose();
		if (documentRootItemProvider != null) documentRootItemProvider.dispose();
		if (foreachItemProvider != null) foreachItemProvider.dispose();
		if (idItemProvider != null) idItemProvider.dispose();
		if (idArgItemProvider != null) idArgItemProvider.dispose();
		if (ifItemProvider != null) ifItemProvider.dispose();
		if (includeItemProvider != null) includeItemProvider.dispose();
		if (insertItemProvider != null) insertItemProvider.dispose();
		if (mapperItemProvider != null) mapperItemProvider.dispose();
		if (otherwiseItemProvider != null) otherwiseItemProvider.dispose();
		if (parameterItemProvider != null) parameterItemProvider.dispose();
		if (parameterMapItemProvider != null) parameterMapItemProvider.dispose();
		if (propertyItemProvider != null) propertyItemProvider.dispose();
		if (resultItemProvider != null) resultItemProvider.dispose();
		if (resultMapItemProvider != null) resultMapItemProvider.dispose();
		if (selectItemProvider != null) selectItemProvider.dispose();
		if (selectKeyItemProvider != null) selectKeyItemProvider.dispose();
		if (setItemProvider != null) setItemProvider.dispose();
		if (sqlItemProvider != null) sqlItemProvider.dispose();
		if (trimItemProvider != null) trimItemProvider.dispose();
		if (typeAliasItemProvider != null) typeAliasItemProvider.dispose();
		if (updateItemProvider != null) updateItemProvider.dispose();
		if (whenItemProvider != null) whenItemProvider.dispose();
		if (whereItemProvider != null) whereItemProvider.dispose();
	}

}
